package com.wuyou.web;

import com.alibaba.fastjson.JSON;
import com.wuyou.platform.WebNoRollbackTester;
import com.wuyou.web.redis.domain.User;
import com.wuyou.web.redis.opsFactory.DevRedisOps;
import com.wuyou.web.redis.opsFactory.TestRedisOps;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;


public class DbGenerator extends WebNoRollbackTester {

    /**
     * run to generate
     */
    @Test
    public void gen() {

    }

    @Autowired
    private DevRedisOps devRedisOps;
    @Autowired
    private TestRedisOps testRedisOps;

    @Test
    public void redisMore() {

        User user = new User("llf", 23);

        String userStr = JSON.toJSONString(user);

        devRedisOps.setData("llf",userStr);

        testRedisOps.setData("fzy",userStr);

    }

}

